import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;




public class Principale1 extends JFrame {

	
	JPanel container = new JPanel();
	JPanel panel = new JPanel();
	JPanel top = new JPanel();
	JLabel topLabel = new JLabel("trouvez le bon bouton... ");
	JButton B = new JButton(new ImageIcon("no.jpg"));
	JButton B2 = new JButton();
	JButton B3 = new JButton();
	JButton B4 = new JButton();
	JButton B5 = new JButton();
	JButton B6 = new JButton();
	JButton B7 = new JButton();
	JButton B8 = new JButton();
	JButton B9 = new JButton();
	
	
	int suite_de_numero;
	int Stage;
	
	public Principale1()
		{
		 this.setSize(980, 600);
		 this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		 this.setLocationRelativeTo(null);
		 this.getContentPane().setLayout(new BorderLayout());
		 container.setBackground(Color.white);
		 container.setLayout(new BorderLayout());
		 this.setContentPane(container);
		 panel.setBackground(Color.black);
		 this.setVisible(true);
		 B.addActionListener(new BListener());
		 B2.addActionListener(new B2Listener());
		 B3.addActionListener(new B3Listener());
		 B4.addActionListener(new B4Listener());
		 B5.addActionListener(new B5Listener());
		 B6.addActionListener(new B6Listener());
		 B7.addActionListener(new B7Listener());
		 B8.addActionListener(new B8Listener());
		 B9.addActionListener(new B9Listener());
		 
		 	GridLayout gl = new GridLayout();
			gl.setColumns(3);
			gl.setRows(3);
			panel.add(B);
			panel.add(B2);
			panel.add(B3);
			panel.add(B4);
			panel.add(B5);
			panel.add(B6);
			panel.add(B7);
			panel.add(B8);
			panel.add(B9);
			
			panel.setLayout(gl);
			gl.setVgap(5);
			gl.setHgap(5);
			container.add(panel, BorderLayout.CENTER);
			top.add(topLabel);
			container.add(top, BorderLayout.NORTH);
			
			
			
		}
	
	
	public class BListener implements ActionListener {

		public void actionPerformed(ActionEvent arg0) {
			
		}}

	public class B1Listener implements ActionListener {

		public void actionPerformed(ActionEvent arg0) {
			
		}}
	public class B2Listener implements ActionListener {

		public void actionPerformed(ActionEvent arg0) {
			
		}}
	public class B3Listener implements ActionListener {

		public void actionPerformed(ActionEvent arg0) {
			
		}}
	public class B4Listener implements ActionListener {

		public void actionPerformed(ActionEvent arg0) {
			
		}}
	public class B5Listener implements ActionListener {

		public void actionPerformed(ActionEvent arg0) {
			
		}}
	public class B6Listener implements ActionListener {

		public void actionPerformed(ActionEvent arg0) {
			
		}}
	public class B7Listener implements ActionListener {

		public void actionPerformed(ActionEvent arg0) {
			
		}}
	public class B8Listener implements ActionListener {

		public void actionPerformed(ActionEvent arg0) {
			
		}}
	public class B9Listener implements ActionListener {

		public void actionPerformed(ActionEvent arg0) {
			
		}}
	}